GtkStack: Remove redundant code
authorDebarshi Ray <debarshir@gnome.org>
Mon, 12 Dec 2016 20:04:05 +0000 (21:04 +0100)
committerDebarshi Ray <debarshir@gnome.org>
Mon, 19 Dec 2016 23:32:15 +0000 (00:32 +0100)
Commit 7ce96cb6ac28eeb62e003dcb9e0a8ce7d48e09e0 avoids notifications
during destruction by using gtk_widget_in_destruction. Therefore this
code is no longer needed.

This reverts commit 39e7afecb1ee882232e887e1b3e4c30ae0afe3a3

https://bugzilla.gnome.org/show_bug.cgi?id=749012

gtk/gtkstack.c

index 610b2f6239976664322d991991f6d9bb3cfd2f8b..067aae77c8378ffd6238b560a28d4c73dbe2dfc4 100644 (file)
@@ -212,17 +212,6 @@ static gint     get_bin_window_y                         (GtkStack            *s
 
 G_DEFINE_TYPE_WITH_PRIVATE (GtkStack, gtk_stack, GTK_TYPE_CONTAINER)
 
-static void
-gtk_stack_dispose (GObject *obj)
-{
-  GtkStack *stack = GTK_STACK (obj);
-  GtkStackPrivate *priv = gtk_stack_get_instance_private (stack);
-
-  priv->visible_child = NULL;
-
-  G_OBJECT_CLASS (gtk_stack_parent_class)->dispose (obj);
-}
-
 static void
 gtk_stack_finalize (GObject *obj)
 {
@@ -416,7 +405,6 @@ gtk_stack_class_init (GtkStackClass *klass)
 
   object_class->get_property = gtk_stack_get_property;
   object_class->set_property = gtk_stack_set_property;
-  object_class->dispose = gtk_stack_dispose;
   object_class->finalize = gtk_stack_finalize;
 
   widget_class->size_allocate = gtk_stack_size_allocate;